package com.dpiinc.TechPage.room.bean;


import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * Created by hu489_000 on 2018-07-01.
 */

@Entity(tableName = "UserEntity")
public class UserEntity {

    /**
     * 系统全局唯一用户id
     */
    @PrimaryKey
    @NonNull
    private String uid;
    @ColumnInfo(name = "accessToken")
    private String accessToken;
    @ColumnInfo(name = "expireTime")
    private String expireTime;
    @ColumnInfo(name = "refreshToken")
    private String refreshToken;

    /**
     * 手机号
     */
    @ColumnInfo(name = "phoneNum")
    private String phoneNum;

    /**
     * 密码
     */
    @ColumnInfo(name = "password")
    private String password;

    /**
     * 微信unionid
     */
    @ColumnInfo(name = "unionid")
    private String unionid;
    /**
     * 微信openid
     */
    @ColumnInfo(name = "openid")
    private String openid;

    @ColumnInfo(name = "nickname")
    private String nickname;

    @ColumnInfo(name = "nickImage")
    private String nickImage;

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(String expireTime) {
        this.expireTime = expireTime;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getNickImage() {
        return nickImage;
    }

    public void setNickImage(String nickImage) {
        this.nickImage = nickImage;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "uid='" + uid + '\'' +
                ", accessToken='" + accessToken + '\'' +
                ", expireTime='" + expireTime + '\'' +
                ", refreshToken='" + refreshToken + '\'' +
                ", phoneNum='" + phoneNum + '\'' +
                ", password='" + password + '\'' +
                ", unionid='" + unionid + '\'' +
                ", openid='" + openid + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
